import request from '@/utils/request'

// 装修页面列表
export async function getPageList(data: any) {
  return request('/api/v2/getPageList', {
    method: 'GET',
    params: data
  })
}

// 获取短链接
export async function getShortUrl(data: any) {
  return request('/api/backend/getShortUrl', {
    method: 'POST',
    data
  })
}

// 备注
export async function setPageRemark(data: any) {
  return request('/api/v2/setPageRemark', {
    method: 'POST',
    data
  })
}

// 新增装修页面
export async function addPage(data: any) {
  return request('/api/v2/addPage', {
    method: 'POST',
    data
  })
}

// 删除装修页面
export async function delPage(data: any) {
  return request('/api/v2/delPage', {
    method: 'POST',
    data
  })
}
